package com.itheima.reggie.service;

import com.itheima.reggie.entity.Category;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.entity.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeService {

    /**
     * 登录功能
     * @param employee
     * @return
     */
    Employee login(Employee employee);


    /**
     * 新增员工
     * @param employee
     * @return
     */
    Boolean addEmployee(Employee employee);

    /**
     * 根据名字分页查询
     * @param name
     * @param page
     * @param pageSize
     * @return
     */
    Page findByPage(String name,long page,long pageSize);

    /**
     * 根据id查询员工信息
     * @param id
     * @return
     */
    Employee selectById(Long id);

    /**
     * 修改员工信息
     * @param employee
     * @return
     */
    Boolean update(Employee employee);





}
